package com.fanben100.biz;

import com.fanben100.domain.SysConfig;
import com.fanben100.exception.LoadConfigException;

public class SysConfigContext {

	private SysConfigStrategy configStrategy;

	public SysConfigStrategy getConfigStrategy() {
		return configStrategy;
	}

	public void setConfigStrategy(SysConfigStrategy configStrategy) {
		this.configStrategy = configStrategy;
	}

	public void loadSysConfig(String... fileName) throws LoadConfigException {
		this.configStrategy.algorithmInterface(fileName);
	}

	public static void main(String[] args) {
		SysConfigStrategy strategy = new InnerPropertyStrategy();
		SysConfigContext context = new SysConfigContext();
		context.setConfigStrategy(strategy);
	//	context.loadSysConfig();
		System.out.println(SysConfig.sellerId);
	}
}
